import { prop, modelOptions } from '@typegoose/typegoose';
import { ApiProperty } from '@nestjs/swagger';

// 给添加的数据加入时间戳
@modelOptions({
  schemaOptions: {
    timestamps: true,
  },
})
export class TabDetail {
  @ApiProperty({ description: '相关的collectionId ' })
  @prop({
    required: true,
  })
  collectionId: string;

  @ApiProperty({ description: '相关的tabId', default: false })
  @prop({
    required: true,
  })
  tabId: string;
}
